package com.campus_activity.campus_activity.service;

import com.campus_activity.campus_activity.domain.po.UserActivity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus_activity.campus_activity.domain.vo.ParticipateStatusVO;

/**
 * @author 73493
 * @description 针对表【t_user_activity(用户活动记录表)】的数据库操作Service
 * @createDate 2023-04-24 17:07:12
 */
public interface UserActivityService extends IService<UserActivity> {

    /**
     * 参加活动
     *
     * @param id
     * @return
     */
    boolean participateActivity(Long id);

    /**
     * 退出活动
     */
    boolean exitActivity(Long id);

    /**
     * 添加活动记录
     *
     * @return
     */
    boolean createActivityOrder(Long activityId);

    /**
     * 查询用户对当前活动状态
     * @param id
     * @return
     */
    ParticipateStatusVO getParticipateStatus(Long id);
}
